#ifndef GOWILDRESPONSEDEVICELISTCMD_H
#define GOWILDRESPONSEDEVICELISTCMD_H

#include "Command/BaseCmd.h"
#include "DataType/GowildStruct.h"
#include "Protocol/GowildProtocol.h"

class GowildResponseDeviceListCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = GowildProtocol::GowildResponseDeviceList};
    Q_INVOKABLE explicit GowildResponseDeviceListCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    QHash<int, Gowild::DeviceStruct> deviceHash() const;
    void setDeviceHash(const QHash<int, Gowild::DeviceStruct> &deviceHash);

private:
    QHash<int,Gowild::DeviceStruct> m_deviceHash;

};

#endif // GOWILDRESPONSEDEVICELISTCMD_H
